package ua.form;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import ua.model.RoleBean;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

@SuppressWarnings("serial")
public class RoleListForm extends ActionForm{
	private Collection<RoleBean> roles;
	
	private String search;
	
	public String getSearch()
	{
		return search;
	}
	
	public void setSearch(String data)
	{
		search=data;
	}
	
	/* get the collection roles*/
    public Collection<RoleBean> getRoles() {
        return roles;
    }
 
	/* set the collection roles*/
    public void setRoles(List<RoleBean> roles) {
        this.roles = roles;
    }

	/* reset the collection roles*/
    @Override
	public void reset(ActionMapping arg0, HttpServletRequest arg1) {
    	roles = new ArrayList<RoleBean>();
    }
}